import { connect } from 'react-redux'
import {makeLogout} from '../actions'
import UserProfile from '../components/UserProfile'


const mapStateToProps = state => ({
    error: state.profile.error,
    isLogin: state.profile.isLogin,
    username: state.profile.username,
})




export default connect(
  mapStateToProps,
  {makeLogout}
)(UserProfile)

